package com.baizhi.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Banner {
    private Integer id;
    private String url;
    private String name;
    private Integer state;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private String description;

    @Override
    public String toString() {
        return "Banner{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", name='" + name + '\'' +
                ", state=" + state +
                ", date=" + date +
                ", description='" + description + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Banner(Integer id, String url, String name, Integer state, Date date, String description) {
        this.id = id;
        this.url = url;
        this.name = name;
        this.state = state;
        this.date = date;
        this.description = description;
    }

    public Banner() {
    }
}
